import { CompanyInfoType, LogisticsType, OrderListType } from '@/type'
import { defineStore } from 'pinia'

const useOrderStore = defineStore("order", {
    // 持久化存储插件其他配置

    state: () => ({
        keywords: '',
        orderInfo: {
            sendInfo: {
                sendUser: '',
                sengPhone: '',
                sendAddress: ''
            }
        } as OrderListType,

        companyInfo: {} as CompanyInfoType,
        endCompanyInfo: {} as CompanyInfoType,

        imgUrl: '',

        author: '',

        logisticsInfo: {} as LogisticsType,
        companyTrue: [],
        companyFalse: []
    }),

    actions: {

    },

    getters: {

    },
})

export default useOrderStore